package com.samphanie.security.validation.service;

import com.samphanie.common.utils.MyRequestWrapper;
import com.samphanie.security.domain.Captcha;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * @author ZSY
 * @email 1451691457@qq.com
 */
public interface ICaptchaService {

    /**
     * 渲染验证码
     *
     * @return 验证码内容
     */
    Captcha render(ServletWebRequest request);

    void validate(ServletWebRequest request, MyRequestWrapper requestWrapper);

    void validate(ServletWebRequest servletWebRequest, String code);

}
